import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SLadderBattlePlayer } from "./SLadderBattlePlayer";
type int = number;
//class SLadderBattle
    
    export  class SLadderBattle
    {
       

        public __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.ladderId);
            this.playerOne.__write(arg1);
            this.playerTwo.__write(arg1);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.ladderId = arg1.readInt();
            this.playerOne = new SLadderBattlePlayer();
            this.playerOne.__read(arg1);
            this.playerTwo = new SLadderBattlePlayer();
            this.playerTwo.__read(arg1);
            return;
        }

        public /* var */ladderId: int;

        public /* var */playerOne: SLadderBattlePlayer;

        public /* var */playerTwo: SLadderBattlePlayer;
    }
